module.exports = class extends think.Model {
  async getgroup(map = {}) {
    const list = await think.cache('all_member_group', () => {
      return this.select();
    }, {timeout: 365 * 34 * 3600});
    if (this.isEmpty(map)) {
      return list;
    } else {
      return think._.filter(list, map);
    }
  }
}